﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace TankWin.Classes
{
    class ObjIncLevel
    {
        private Point _position;
        private Image[] _image;
        private EStatusTank _status;
        public Point Position
        {
            get { return _position; }
            set { _position = value; }
        }
        public Image[] ImageInc
        {
            get { return _image; }
            set { _image = value; }
        }
        public EStatusTank Status
        {
            get { return _status; }
            set { _status = value; }
        }

        private Image _Increase = global::TankWin.ImageTank.Increase;
        private Image _Reduced = global::TankWin.ImageTank.Reduced;
        public ObjIncLevel(Point _position)
        {
            this._position = _position;
            _status = EStatusTank.IsAlive;
            _image = new Image[2]{
                _Increase,_Reduced
            };
        }
        public void Draw(Graphics _g)
        {
            if (_status == EStatusTank.IsAlive)
                _g.DrawImageUnscaled(_image[0], _position.X, _position.Y);
            else _g.DrawImageUnscaled(_image[1], _position.X, _position.Y);
        }

    }
}
